﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void Seach()
    {
       string person_code=txt_Person_code.Text.Trim();
        string first_name=txt_first_name.Text.Trim();
        string middle_name=txt_middle_name.Text.Trim();
        string last_name=Txt_Last_name.Text.Trim();
        string birthday=txt_birthday.Text.Trim();
        string deathday=txt_deathday.Text.Trim();

        DataTable arr = new DataTable();
        Business bs = new Business();
        arr = bs.SpS_Search(person_code,first_name,middle_name,last_name,birthday,deathday);
        GridView1.DataSource = arr;
        GridView1.DataBind();
    }
    protected void btnSeach_Click(object sender, EventArgs e)
    {
        Seach();
    }
}